<?php
namespace app\index\controller;

use app\common\model\SeedFirstLog as SeedFirstLogModel;

class SeedFirst extends ControllerBase {
	public function _initialize() {
		$this -> checkLogin();
	}

    public function record() {
		$this -> view -> assign('seedFirstLogs', SeedFirstLogModel::where('user_id', \think\Session::get('user_id')) -> order('seed_first_log_id DESC') -> paginate(10, false));

        return $this -> view -> fetch();
    }
}
?>